package com.changyue.activity.history.entity;

import android.os.Parcel;
import android.os.Parcelable;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

@Entity
public class TestDataEntity implements Parcelable {


    @Id(autoincrement = true)
    Long id;


    Long data_id;

    public  int ch1;
    public  int ch2;


    public TestDataEntity() {

    }

    public TestDataEntity(Parcel in) {
        ch1 = in.readInt();
        ch2 = in.readInt();
    }

    @Generated(hash = 1630336012)
    public TestDataEntity(Long id, Long data_id, int ch1, int ch2) {
        this.id = id;
        this.data_id = data_id;
        this.ch1 = ch1;
        this.ch2 = ch2;
    }

    public static final Creator<TestDataEntity> CREATOR = new Creator<TestDataEntity>() {
        @Override
        public TestDataEntity createFromParcel(Parcel in) {
            return new TestDataEntity(in);
        }

        @Override
        public TestDataEntity[] newArray(int size) {
            return new TestDataEntity[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(ch1);
        dest.writeInt(ch2);
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getData_id() {
        return this.data_id;
    }

    public void setData_id(Long data_id) {
        this.data_id = data_id;
    }

    public int getCh1() {
        return this.ch1;
    }

    public void setCh1(int ch1) {
        this.ch1 = ch1;
    }

    public int getCh2() {
        return this.ch2;
    }

    public void setCh2(int ch2) {
        this.ch2 = ch2;
    }
}
